<?php

function setTitle($title) {
	echo "<title>".$title."</title>";
}

if (isset($_GET['page'])) {
	switch($_GET['page']) {
		case "home": setTitle ("BasketLiga 2013"); break;
		case "articles": setTitle("Articles - BasketLiga 2013"); break;
		case "gallery": setTitle("Gallery - BasketLiga 2013"); break;
		case "schedule": setTitle("Schedule - BasketLiga 2013"); break;
		case "standings": setTitle("Standings - BasketLiga 2013"); break;
		case "team": { $a = new Tim($_GET['id']); setTitle("Tim " . $a->ime . " - BasketLiga 2013"); } break;
		case "article": { $a = new Article($_GET['id']); setTitle($a->naslov . " - BasketLiga 2013"); } break;
	}
}
else {
	setTitle("BasketLiga 2013");
}

?>